﻿using System;

namespace CrazyBeavers.Geodesy.Ellipsoids
{
    public abstract class Ellipsoid : IEquatable<Ellipsoid>
    {
        public double SemiMajorAxis { get; protected set; }
        public double Flattening { get; protected set; }

        public bool Equals(Ellipsoid other)
        {
            bool smaEquals = SemiMajorAxis == other.SemiMajorAxis;
            bool fEquals = Flattening == other.Flattening;

            return smaEquals & fEquals;
        }
    }
}
